package com.ywy.job.task;

import org.springframework.stereotype.Component;

/**
 * 定时任务示例
 *
 * @author ywy
 * @date 2021/11/5 15:33
 */
@Component("helloWorldJob")
public class HelloWorldJob {
    public void taskWithParams(String params) {
        System.out.println("执行有参示例任务：" + params);
    }

    public void taskNoParams() {
        System.out.println("执行无参示例任务");
    }
}
